package ly.jobdu;

import java.util.Scanner;

public class Q1045HundredChickens {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			hundredChickens(a);
		}

	}

	public static void hundredChickens(int n) {
		float x, y, z;
		for (x = 0; x <= 100; x++) {
			for (y = 0; y <= 100; y++) {
				for (z = 0; z <= 100; z++) {
					if (x + y + z == 100 && 5 * x + 3 * y + z / 3 <= n) {
						System.out.println("x=" + (int)x + "," + "y=" + (int)y + "," + "z=" + (int)z);
					}
				}
			}
		}
	}
}
